package com.mobile.manager.service.impl;

import com.mobile.manager.dao.IApkDao;
import com.mobile.manager.dao.IDeviceDao;
import com.mobile.manager.pojo.Apk;
import com.mobile.manager.pojo.Device;
import com.mobile.manager.service.IDashBoardService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by zhangdi on 16/9/20.
 */
@Service("DashBoardService")
public class DashBoardImpl implements IDashBoardService{
    @Resource
    private IApkDao apkDao;
    @Resource
    private IDeviceDao deviceDao;

    @Override
    public String getCountofDeviceByOS(Device device) {

        return this.deviceDao.getCountOfDeviceByOS(device);
    }

    @Override
    public String getCountofAPKByOS(Apk apk) {

        return this.apkDao.getCountOfApkByOS(apk);
    }
}
